<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
	<title>自己的电商系统</title>
	<meta charset="utf-8">
	<link rel="stylesheet" href="/tpshop2/Public/css/bootstrap.min.css" />
	<link rel="stylesheet" href="/tpshop2/Public/css/bootstrap-theme.min.css" />
	<link rel="stylesheet" href="/tpshop2/Public/css/nivo-slider.css" />
	<link rel="stylesheet" href="/tpshop2/Public/css/front.css" />
</head>
<body>
	<div class="container">
		<div class="row" id="header">
			<div class="col-md-3">
				<a href="/tpshop2/index.php"><img class="logo" id="logo" src="/tpshop2/Public/img/logo.jpg"" /></a>
			</div>
		</div>
		<br />
	</div>
	<div id="regedit_wrapper">
	<div class="container">
		<div id="regedit">
			<div class="panel panel-default">
				<div class="panel-heading">
					用户注册
				</div>
				<div class="panel-body">
					<form action="<?php echo U('user/do_regedit')?>" method="post">
						<div class="form-group">
							<label>账户名</label>
							<input type="text" class="form-control" name="username" placeholder="请输入账户名...">
						</div>
						<div class="form-group">
							<label>密码</label>
							<input type="password"  class="form-control" name="password" placeholder="请输入密码...">
						</div>
						<div class="form-group">
							<label>再次输入密码</label>
							<input type="password"   class="form-control" name="password_repeat" placeholder="请再次输入密码...">
						</div>

						<div class="form-group">
							<label>验证码</label>
							<div class="row">
								<div class="col-md-6">
									<input type="text"  class="form-control" name="verify" placeholder="请输入验证码...">
								</div>
								<div class="col-md-6">
									<img style="cursor:pointer; width:100%;" id="verify" src="<?php echo U('user/verify')?>">
								</div>
							</div>

						</div>


						<div class="form-group">
							<button type="submit" class="btn btn-block btn-success">注册</button>	
						</div>

					</form>
				</div>
			</div>
		</div>
	</div>
	</div>
	<script type="text/javascript" src="/tpshop2/Public/js/jquery.js"></script>
	<script type="text/javascript">
		$(function(){
			$('#verify').click(function(){
				var src= "<?php echo U('user/verify')?>"+"?"+Math.floor(Math.random()*1000);
				$(this).attr('src',src);
			});
		});
	</script>
</body>
</html>